package cn.wolfcode.luowowo2.website.web.controller;

import cn.wolfcode.luowowo2.member.service.IUserInfoService;
import cn.wolfcode.luowowo2.util.AjaxResult;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Albert on 2019/7/6.
 */
@Controller
public class VerifyCodeController {
    @Reference
    private IUserInfoService userInfoService;

    @RequestMapping("sendVerifyCode")
    @ResponseBody
    public Object sendVerifyCode(String phone){
        userInfoService.sendVerifyCode(phone);

        return new AjaxResult();
    }
}
